/* 比赛数据页面样式 */

.match-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.match-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 0px solid #e0e0e0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.match-page__title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}

.header-filters {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* 新的筛选按钮组容器样式 */
.date-filter-group,
.recommendation-filter-group {
  position: relative;
}

/* 在两个筛选组之间添加分隔线 */
.date-filter-group::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #e2e8f0;
}

.match-page__content {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 表格容器 */
.match-table-container {
  overflow-x: auto;
  max-width: 100%;
}

/* 比赛表格 */
.match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 1200px;
}

.match-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  font-size: 13px;
}

.match-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 13px;
}

.match-table tbody tr:hover {
  background: #f9fafb;
}

/* 第一行投注信息样式 */
.match-table .first-betting {
  border-top: 2px solid #e5e7eb;
}

.match-table .additional-betting {
  background: #fefefe;
}

/* 比赛信息列 */
.match-table .match-info {
  background: #f8fafc;
  font-weight: 500;
  border-right: 1px solid #e5e7eb;
}

/* 队伍列特殊样式 */
.match-table .match-info.teams,
.match-table .teams {
  position: relative;
  overflow: visible; /* 允许内容显示完整 */
  min-width: 200px; /* 设置最小宽度确保队名显示 */
}

/* 竞彩编号样式 */
.match-table .jingcai-number {
  color: #059669;
  font-weight: 600;
  min-width: 80px;
  white-space: nowrap;
}

/* 北单编号特殊样式 */
.match-table .beidan-number {
  color: #dc2626;
  font-weight: 600;
  min-width: 80px;
  white-space: nowrap;
}

/* 比赛时间 */
.match-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.match-date {
  background: #3b82f6;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
}

.match-weekday {
  color:rgb(208, 29, 29);
  font-size: 14px;
  font-weight: 500;
  /* 字体怎么突出一些 */
  text-shadow: 0 0 2px rgba(215, 19, 91, 0.3);
  

}

.match-clock {
  color: #374151;
  font-size: 16px;
  font-weight: 500;
}

/* 联赛 */
.match-table .league {
  color:rgb(0, 0, 0);
  font-size: 15px;
  font-weight: 600;
  max-width: 80px;
  word-wrap: break-word;
  /* background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%); */
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* 队伍信息 */
.teams-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  white-space: normal; /* 允许文字换行 */
  font-size: 14px;
  padding: 8px;
  min-height: 60px; /* 设置最小高度适应换行 */
}

.home-team, .away-team {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  line-height: 1.2;
  flex: 1;
  word-wrap: break-word; /* 允许长单词换行 */
  overflow-wrap: break-word; /* 兼容性更好的换行 */
  max-width: 80px; /* 限制最大宽度避免过度拉伸 */
}

.vs-text {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #d1fae5;
  margin: 0 4px;
  min-width: 32px;
  text-align: center;
}

/* 让球信息 */
.match-table .handicap {
  font-weight: 500;
  color: #059669;
}

.match-table .handicap.beidan {
  color: #dc2626;
  font-weight: 600;
}

/* 赔率 */
.match-table .odds {
  font-weight: 600;
  font-size: 14px;
  min-width: 50px;
  position: relative;
}

.match-table .odds.win {
  color: #059669;
  background: #ecfdf5;
}

.match-table .odds.draw {
  color: #d97706;
  background: #fffbeb;
}

.match-table .odds.lose {
  color: #dc2626;
  background: #fef2f2;
}

/* 胜率列 */
.match-table .team-rate {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

/* 详情按钮 */
.detail-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.match-page__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.match-page__error {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  color: #dc2626;
  font-size: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin: 20px 0;
}

.match-page__empty {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.match-page__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pagination-button {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  min-width: 36px;
  text-align: center;
}

.pagination-button:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-button.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
  margin: 0 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .header-filters {
    gap: 15px;
  }
  
  .date-filters,
  .recommendation-filters {
    gap: 6px;
  }
  
  .filter-button {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .match-table {
    min-width: 1000px;
    font-size: 12px;
  }
  
  .match-table th {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .match-table td {
    padding: 6px;
    font-size: 12px;
  }
  
  .detail-button {
     padding: 4px 8px;
     font-size: 12px;
   }
}

@media (max-width: 768px) {
  .match-page {
    padding: 10px;
  }
  
  .match-page__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .header-left {
    gap: 10px;
  }
  
  .match-page__title {
    font-size: 20px;
  }
  
  .header-filters {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .date-filters::after {
    display: none;
  }
  
  .date-filters,
  .recommendation-filters {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-button {
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
  
  .match-table {
    min-width: 800px;
    font-size: 11px;
  }
  
  .match-table th {
    padding: 8px 4px;
    font-size: 11px;
  }
}

/* 历史比赛结果列样式 */
.match-table .match-result {
  text-align: center;
  font-weight: 600;
  min-width: 60px;
  color: #1f2937; /* 添加深灰色字体颜色 */
}

.match-table .prediction-hit {
  text-align: center;
  min-width: 80px;
}

/* 命中状态样式 */
.hit-success {
  color: #059669;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.hit-fail {
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* 响应式设计 - 历史比赛结果列 */
@media (max-width: 1024px) {
  .match-table .match-result,
  .match-table .prediction-hit {
    min-width: 50px;
    font-size: 11px;
  }
  
  .hit-success,
  .hit-fail {
    font-size: 10px;
    padding: 1px 4px;
  }
}

@media (max-width: 768px) {
  .match-table .match-result,
  .match-table .prediction-hit {
    min-width: 40px;
    font-size: 10px;
  }
  
  .hit-success,
  .hit-fail {
    font-size: 9px;
    padding: 1px 3px;
  }
  
  .match-table td {
    padding: 4px;
    font-size: 11px;
  }
  
  .match-date {
    font-size: 14px;
    padding: 1px 4px;
  }
  
  .match-weekday {
    font-size: 12px;
  }
  
  .match-clock {
    font-size: 14px;
  }
  
  .home-team, .away-team {
    font-size: 10px;
  }
  
  .vs {
    font-size: 9px;
  }
  
  .match-table .odds {
    font-size: 12px;
    min-width: 40px;
  }
  
  .detail-button {
     padding: 3px 6px;
     font-size: 10px;
   }
  
  .match-page__pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .pagination-info {
    width: 100%;
    text-align: center;
    margin: 8px 0 0 0;
    font-size: 12px;
  }
  
  .pagination-button {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .match-page {
    padding: 12px;
  }
  
  .header-left {
    gap: 8px;
  }
  
  .match-page__title {
    font-size: 18px;
  }
  
  .filter-button {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .match-table {
    min-width: 600px;
  }
  
  .match-table th,
  .match-table td {
    padding: 4px 2px;
  }
  
  .detail-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .pagination-button {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
  }
  
  .pagination {
     flex-direction: column;
     gap: 10px;
   }
   
   .pagination-controls {
     justify-content: center;
   }
}
